package com.bw.module_mine.model.api
import com.bw.lib_net.NetModule
import com.google.android.exoplayer2.C.NetworkType
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
class NetModule {

    @Provides
    @Singleton
    fun getMineApi(@NetModule.CommonRetrofit retrofit:Retrofit):MineApi{
        return retrofit.create(MineApi::class.java)
    }
}